FROM node:16-alpine
# FROM node:21-alpine

COPY package.json /opt/dependencies/package.json
COPY yarn.lock /opt/dependencies/yarn.lock
COPY tsconfig.json /opt/dependencies/tsconfig.json

# RUN cd /opt/dependencies && npm install && npm update
RUN cd /opt/dependencies && yarn install
# && yarn upgrade

WORKDIR /opt/frontend
